<?php /* Smarty version 2.6.16, created on 2011-09-23 18:59:08
         compiled from reply.tpl */ ?>
<?php echo '
<script type="text/javascript">
<link href="style/style.css" rel="stylesheet" type="text/css" />
function homeslider()
{}
function submit_message_text()
{	
	var message_text=$(\'#message_text\').val();
	var user_id_to=$(\'#user_id_to\').val();
	var user_id_from=$(\'#user_id_from\').val();
	var reply_of_msg=$(\'#reply_of_msg\').val();
	
	if(message_text == ""){
		$(\'#message_text\').css(\'border\',\'1px solid #FF0000\');
		return false;
	}	
	else{
		$(\'#message_text\').css(\'border\',\'1px solid #000\');
	}
	$.ajax({
		   url:\'reply.php\',
		   data:\'flag=1&message_text=\'+message_text+\'&reply_of_msg=\'+reply_of_msg+\'&user_id_to=\'+user_id_to+\'&user_id_from=\'+user_id_from,
		   type:\'post\',		  
		   success:function(resp){
			    $(\'#msgbox\').html(\'Your messege send successfully\');
		   } 		   
	});
	document.getElementById("message_text").value=\'\';
	
}
</script>
'; ?>

 <div id="TB_closeWindow">
     <a href="javascript:;" onclick="self.parent.tb_remove();"><img alt="Close" title="Close Window" class="btn_close" src="images/close_button.png"></a>
 </div>
  <div class="" id="msgbox">
    <form action="" method="post" id="" name="" onsubmit="return false();">
    <textarea rows="10" cols="40"  name="message_text" id="message_text" class=""></textarea>
    <input name="flag" type="hidden" value="1" />
	<input name="user_id_to" id="user_id_to" type="hidden" value="<?php echo $this->_tpl_vars['user_id_to']; ?>
" />
    <input name="user_id_from" id="user_id_from" type="hidden" value="<?php echo $_SESSION['user_id']; ?>
" />
    <input name="reply_of_msg" id="reply_of_msg" type="hidden" value="<?php echo $this->_tpl_vars['reply_of_msg']; ?>
" /> 
	<br/>  	  
    <input name="snd_message_text" type="button" class="buttn" value="Message" onclick="return submit_message_text()"/> 
    </form>
   </div>